package cn.edu.scau.cmi.wujiaxian.composite.safe;

public final class StringUtils {
	
	public static String repeat(String string, int time) {
		if (time <= 0) {
			return "";
		}
		StringBuilder stringBuilder = new StringBuilder(string);
		for (int i = 0; i < time - 1; i++) {
			stringBuilder.append(string);
		}
		return stringBuilder.toString();
	}
	
}
